To delete one character, position the cursor over the character to be deleted and type x . The x command also deletes the space the character occupied—when a ...
In vi do :1,$d to delete all lines. The : introduces a command (and moves the cursor to the bottom). The 1,$ is an indication of which lines the following ...